package com.ruan.openfeign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName:AdminCenterOpenfeign
 * @Author:阮昇
 * @Description:
 * @Datetime: 2023/6/30 15:22
 **/
@FeignClient(value = "admin-center",path = "/admin")
public interface AdminCenterOpenfeign {
    @RequestMapping("/getCurrentAdminId")
    public Integer getCurrentAdminId();

    @RequestMapping("/getRefreshToken")
    public String getRefreshToken();

    @RequestMapping("/getRefreshToken/{refreshToken}")
    public void setRefreshToken(@PathVariable(value = "refreshToken") String refreshToken);
}
